package com.prs.crm.service.oa;

import java.io.File;
import java.util.Collection;
import java.util.Date;

import org.jfree.data.general.AbstractDataset;

import com.prs.crm.domain.hr.Person;
import com.prs.crm.domain.oa.JobPlan;
import com.prs.crm.domain.oa.JobPlanDetail;
import com.prs.crm.service.BaseService;

public interface JobPlanService extends BaseService<JobPlan>{
	void submitJobPlan(Collection<JobPlanDetail> jobPlanDetails,JobPlan jobPlan,String copyToPersons,File file,String fileName);
	Collection<JobPlan> getLastJobPlan(String type,Person person,Date current);
	Collection<JobPlan> getJobPlanByAudit(Person person);
	boolean existSameTimeJobPlan(Date startTime,Date endTime,String type,Person person);
	Collection<JobPlan> getJobPlanByKpi(Integer year,Integer month,String type,Person person);
	
	Collection<?> getReportJobPlanSource(String state, String type, Date datestart, Date dateend, Collection<Person> persons);
	AbstractDataset fillDataset(Collection<?> dataList, int GraphicsType);
	Collection<JobPlan> getValidCritiqueJobPlan(Person person);
	Collection<?> getDeptReportJobPlanSource(Date datestart, Date dateend);
	
}
